<?php
/**
 * Created by 七月
 * User: 七月
 * Date: 2017/2/18
 * Time: 12:35
 */

namespace app\admin\validate;

use think\Validate;

class Login extends Validate
{
    protected $rule = [
        'username' => 'require',
        'password' => ['require', 'regex' => '/^.{6,16}$/']
    ];
    
    protected $message=[
        'username.require' => '用户名参数不能为空',
        'password.require' => '密码参数不能为空',
        'password.regex'   => '密码格式错误，请输入6~16位的密码',
    ];


}
